package cn.ctodb.cms.service.dto;

import java.io.Serializable;
import java.util.Objects;


/**
 * A DTO for the CmsModel entity.
 */
public class CmsModelDTO implements Serializable {

    private Long id;

    private String name;

    private String path;

    private String tplChannelPrefix;

    private String tplContentPrefix;

    private Integer sort;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }
    public String getTplChannelPrefix() {
        return tplChannelPrefix;
    }

    public void setTplChannelPrefix(String tplChannelPrefix) {
        this.tplChannelPrefix = tplChannelPrefix;
    }
    public String getTplContentPrefix() {
        return tplContentPrefix;
    }

    public void setTplContentPrefix(String tplContentPrefix) {
        this.tplContentPrefix = tplContentPrefix;
    }
    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        CmsModelDTO cmsModelDTO = (CmsModelDTO) o;

        if ( ! Objects.equals(id, cmsModelDTO.id)) return false;

        return true;
    }

    @Override
    public int hashCode() {
        return Objects.hashCode(id);
    }

    @Override
    public String toString() {
        return "CmsModelDTO{" +
            "id=" + id +
            ", name='" + name + "'" +
            ", path='" + path + "'" +
            ", tplChannelPrefix='" + tplChannelPrefix + "'" +
            ", tplContentPrefix='" + tplContentPrefix + "'" +
            ", sort='" + sort + "'" +
            '}';
    }
}
